<?php




require 'database.php';

$base=new Db;



$ids=$_GET["ids"];



$del=$base->doSql('select * from hkcms_category where parent_id="'.$ids.'"');
for ($i = 0; $i < count($del); $i++) {
    $base->doSql('delete from hkcms_category where id="'.$del[$i].'"');
}


$hkcms_category=$base->doSql('delete from hkcms_category where id="'.$ids.'"');




$data=[
    "code"=>3,
    "msg"=>"操作成功",
    "data"=>"",
    "url"=>null,
    "wait"=>3
];


if($hkcms_category){
    return json($data);
}



